// Copyright (C) 2015, Alberto Corona <alberto@0x1a.us>
// All rights reserved. This file is part of core-utils, distributed under the
// GPL v3 license. For full terms please see the LICENSE file.

#![crate_type = "bin"]
use std::env;

fn print_help() {
    println!("\tpwd -- output the current working directory");
}

fn main() {
    let args = env::args_os();
    if args.len() != 1 {
        print_help();
    } else {
        println!("{}", env::current_dir().unwrap().display());
    }
}
